home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3045 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  877 b 

  1. Path: news.IntNet.net!jtomich
  2. From: jtomich@IntNet.net (Jeff Tomich)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Clearing the keyboard
  5. Date: 25 Jan 1996 07:15:38 GMT
  6. Organization: Intelligence Network Online, Inc.
  7. Message-ID: <4e7amq$nhd@mercury.IntNet.net>
  8. References: <DLMF4r.Gwp@rci.ripco.com>
  9. NNTP-Posting-Host: xcalibur.intnet.net
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. : > Huh? Once the buffer is caught up, it shouldn't continue, but you
  13. : > might want to try fflush(stdin); just the same. ...
  14.  
  15. : Why?  Are there any other pieces of undefined behavior that you think
  16. : people "might want to try?"  Nor does the C language defines what
  17. : happens if you discharge a shotgun at your computer;  maybe you "might
  18. : want to try" that, also.
  19. :                                                                
  20.  
  21. Why not this;
  22.  
  23. while(kbhit())
  24.    getch();
  25.  
  26. this should clear the keyboard...
  27.